﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Articles
{
    public static class CategoryBLL
    {
        public static int GetCategoryCount(IList<Condition> conditionArray)
        {
            return CategoryDAL.GetCategoryCount(conditionArray);
        }

        public static IList<CategoryEntity> GetCategoryList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return CategoryDAL.GetCategoryList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static CategoryEntity GetCategory(int categoryID)
        {
            return CategoryDAL.GetCategory(categoryID);
        }

        public static int InsertCategory(CategoryEntity category)
        {
            return CategoryDAL.InsertCategory(category);
        }

        public static int UpdateCategory(CategoryEntity category)
        {
            return CategoryDAL.UpdateCategory(category);
        }

        public static int DeleteCategory(int categoryID)
        {
            return CategoryDAL.DeleteCategory(categoryID);
        }

        public static CategoryEntity[] GetCategoryArray()
        {
            return CategoryDAL.GetCategoryArray();
        }

        public static int SetCategoryEnable(int categoryID)
        {
            return CategoryDAL.SetCategoryEnable(categoryID);
        }

        public static int SetCategoryMoveUp(int categoryID)
        {
            return CategoryDAL.SetCategoryMoveUp(categoryID);
        }

        public static int SetCategoryMoveDown(int categoryID)
        {
            return CategoryDAL.SetCategoryMoveDown(categoryID);
        }
    }
}
